package demo;

public class Demo05 {
    public static void main(String[] args) {
        int n = 0x71fa9157;
        int m = 0xff;
        int k = n & m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));


        int n1 = 0x7cdddd6f;
        int m1 = n1>>>1;
        int k1 = n1>>>2;
        int g = n1>>>8;
        int b3 = (n1>>>8) & 0xff;
        System.out.println(Integer.toBinaryString(n1));
        System.out.println(Integer.toBinaryString(m1));
        System.out.println(Integer.toBinaryString(k1));
        System.out.println(Integer.toBinaryString(g));
        System.out.println(Integer.toBinaryString(b3));

        int g1 = n1>>>16;
        int b2 = (n1>>>16) & 0xff;
        System.out.println(Integer.toBinaryString(g1));
        System.out.println(Integer.toBinaryString(b2));

        int g2 = n1>>>24;
        int b1 = (n1>>>24) & 0xff;
        System.out.println(Integer.toBinaryString(g2));
        System.out.println(Integer.toBinaryString(b1));



    }
}
